﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="EntityDataSource.aspx.vb" Inherits="WebPhonebook.EntityDataSource" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style = "margin-left:400px; margin-right:400px; width:400px; border:2px solid; padding-left:140px; padding-right:140px">
    
        <br />
        <asp:DetailsView ID="DetailsView2" runat="server" AutoGenerateRows="False" 
            DataKeyNames="ID" DataSourceID="EntityDataSource1" DefaultMode="Insert" 
            Height="50px" Width="125px" CellPadding="4" ForeColor="#333333" 
            GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
            <EditRowStyle BackColor="#2461BF" />
            <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" />
            <Fields>
                <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                    SortExpression="ID" InsertVisible = "False"/>
                <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                <asp:CommandField ShowInsertButton="True" />
            </Fields>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
        </asp:DetailsView>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
            ConnectionString="name=PhotoAlbumEntities" 
            DefaultContainerName="PhotoAlbumEntities" EnableFlattening="False" 
            EntitySetName="PhotoAlbums" EnableInsert="True">
        </asp:EntityDataSource>
    
        <br />
    
    </div>
    </form>
</body>
</html>
